home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’90 / Grabber ƒ / sources ƒ / options.h < prev   
Encoding:
C/C++ Source or Header  |  1990-06-15  |  421 b   |  24 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  options.h - Grabber options record
  4.  *
  5.  *  Copyright © 1990 Michael Kahl.
  6.  *
  7.  */
  8.  
  9. struct opt {
  10.  
  11.         /*  high byte (matches high byte of EventRecord.modifiers)  */
  12.     unsigned        : 3;
  13.     unsigned        control : 1;
  14.     unsigned        option : 1;
  15.     unsigned        capsLock : 1;
  16.     unsigned        shift : 1;
  17.     unsigned        command : 1;
  18.     
  19.         /*  low byte (additional options)  */
  20.     unsigned        enabled : 1;
  21.     unsigned        momentum : 1;
  22.     unsigned        friction : 1;
  23. };
  24.